home *** CD-ROM | disk | FTP | other *** search
/ Your Web Site Creator / Your Web Site Creator.iso / WebSite / data1.cab / Program_Executable_Files / scripts / Favorite.dat < prev    next >
Encoding:
Text File  |  1999-01-13  |  21.2 KB  |  629 lines

  1. ; FAVORITE.DAT   Create/edit favorites section
  2. [AddToFavorites]
  3.     ; GET DATA FROM USER
  4. SETTEMP base = favoritesVarRoot,"favType"
  5. SETTEMP favTypeVar = base,1
  6. SET eval( favTypeVar ) = "Dining"
  7. SETTEMP favTypeVar = base,2
  8. SET eval( favTypeVar ) = "Shopping"
  9. SETTEMP favTypeVar = base,3
  10. SET eval( favTypeVar ) = "Vacation Spot"
  11.  
  12. IF favoritesVarRoot = ""
  13.   SETTEMP wizPic = "wizpics\wizfavr.gif"
  14. ELSE
  15.   SETTEMP wizPic = "wizpics\wizpfavr.gif"
  16. ENDIF
  17.  
  18. GOSUB GetNewFavoriteItems
  19.  
  20. SETTEMP sectionCompleted = 1
  21.  
  22.         ;CREATE FAMILY PAGES ONLY
  23. IF favoritesVarRoot = ""
  24.   BUSY  1
  25.   ARGUMENT "Please hold on now while the wizard constructs the new family favorites pages!  Be patient."
  26.   GOSUB BuildFamFavoritesPages
  27.   IF FavSectnExists = NN || dummyFavorites = YY
  28.     GOSUB BuildHomePage
  29.   ENDIF
  30.   IF dummyFavorites = YY
  31.     SET dummyFavorites = ""
  32.     SET dummy_sections = subtract( dummy_sections 1)
  33.   ENDIF
  34.   BUILDLINKS
  35.   SET hasFavorites = 1
  36.   BUSY 0
  37. ENDIF
  38.  
  39. ;xxxxxxxxxxxxxxxxxxx  REPLACE A FAVORITE  xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  40. [ReplaceFavorites]
  41. IF beenOnce <> 1
  42.   SETTEMP inpL2 = 1
  43.   SETTEMP favRplc = 1
  44. ENDIF
  45.  
  46. SETTEMP favLinkTextVarRoot = favoritesVarRoot,"favLinkText"
  47.  
  48. SETTEMP favLinkTextVar1 = favLinkTextVarRoot,"1"
  49. SETTEMP favLinkTextVar2 = favLinkTextVarRoot,"2"
  50. SETTEMP favLinkTextVar3 = favLinkTextVarRoot,"3"
  51.  
  52. IF favoritesVarRoot = ""
  53.   SETTEMP wizPic = "wizpics\wizfavr.gif"
  54. ELSE
  55.   SETTEMP wizPic = "wizpics\wizpfavr.gif"
  56. ENDIF
  57.  
  58. BACKSTOP LastFav
  59. PAGE
  60. WIZPIC_RE wizPic
  61. TYPE RADIOBUTTONS
  62. NAME inpL2
  63. DESCRIPTION_RE "PICK ONE TO REPLACE\nYou can replace one or more of the '",pers_fam_mode," favorites' that you have previously entered.  You need not keep to the same types of favorites you have already, but rather you can enter them in any combination.",favSeltext,"replace."
  64. ARGUMENT "&1. ",eval( favLinkTextVar1 )@1
  65. ARGUMENT "&2. ",eval( favLinkTextVar2 )@2
  66. ARGUMENT "&3. ",eval( favLinkTextVar3 )@3
  67. ARGUMENT "&Done changing the favorites."@4
  68. NOPREVIOUS
  69.  
  70. IF inpL2 <> 4
  71.   SETTEMP nFavorite = inpL2
  72.   SETTEMP favRplc = 1
  73.   BACKSTOP
  74.   SETTEMP old_wrd_ptr = favLinkTextVarRoot,nFavorite
  75.   SETTEMP old_words = eval( old_wrd_ptr )
  76.   SETTEMP nNumber = nFavorite
  77.   GOSUB Ordinal
  78.   SETTEMP favPrmptext = "REPLACE A FAVORITE\nYou are now replacing the ",ordinal," ",pers_fam_mode," favorite '",old_words,"' with a new favorite.  It does not have to be the same type, but it can be.",favSeltext,"add."
  79.   GOSUB GetFavoriteData
  80.   SETBACKSTOP LastFav
  81.  
  82.   IF favoritesVarRoot = ""
  83.     SETTEMP FavBuild = YY
  84.   ELSE
  85.     SETTEMP doBuild = YY
  86.   ENDIF
  87.  
  88.   SETTEMP inpL2 = 4
  89.   SETTEMP beenOnce = 1
  90.   GOTO ReplaceFavorites    ;loop back for another 
  91. ENDIF
  92. SETTEMP beenOnce = 0
  93. SETTEMP favRplc = 0
  94.  
  95.  
  96. ;xxxxxxxxxxxxxxxxxxxx INPUT 3 FAVORITES IN SUCCESSION xxxxxxxxxxxxxxxxxxxxx
  97. [GetNewFavoriteItems]   ; set favoritesVarRoot before coming here
  98.  
  99. IF skipExplanations = NN
  100.   ;build up the prompt for personal or family favorites
  101.   SETTEMP wlc_fav = "WELCOME TO THE "
  102.   SETTEMP wlc_fav1 = "\n\nOne of the sections on your "
  103.   IF pers_fam_mode = "personal"
  104.     SETTEMP favPart1 = "PERSONAL FAVORITES"
  105.     SETTEMP favPart2 = "why you"
  106.   ELSE
  107.     SETTEMP favPart1 = "FAMILY FAVORITES"
  108.     SETTEMP favPart2 = "which members of your family"
  109.   ENDIF
  110.   SETTEMP favStrtext = wlc_fav,favPart1,wlc_fav1,pers_fam_mod," Web site is for the '",pers_fam_mode," favorites'.  Here you can share some of your favorite things with others by describing them.\n\nYou can describe your favorite places to shop, dine, vacation, and so on, while telling "
  111.   SETTEMP favStrtext = favStrtext,favPart2," enjoy these 'favorites' and what you like most about them.  It's great fun!"
  112.   SETTEMP favStrtext = favStrtext,"\n\nThis section will contain three items.\n\nEach of the three items can be chosen from a category, such as 'Dining', 'Shopping', and so on.  The category helps the wizard select the proper page decorations and ask the right questions.\n\nYou can change these later by modifying what you wrote or by simply replacing an entire item."
  113.  
  114.   BACKSTOP
  115.   PAGE
  116.   WIZPIC_RE wizPic
  117.   TYPE DESCRIPTION
  118.   DESCRIPTION_RE favStrtext
  119. ENDIF
  120.  
  121.  
  122. IF favRplc = 1
  123.   SETTEMP txt1nA = "REPLACE A FAVORITE.   You are now replacing the "
  124.   SETTEMP txt1nB = " of your ",pers_fam_mode," favorites."
  125.   SETTEMP txt1n = "\n\nPick a category for the item that will replace this "
  126.   SETTEMP txt2n = "replace."
  127. ELSE
  128.   SETTEMP txt1nA = "ADD A FAVORITE.   You are now entering the "
  129.   SETTEMP txt1nB = " of three ",pers_fam_mode," favorite items."
  130.   SETTEMP txt1n = "\n\nSelect the category for this "
  131.   SETTEMP txt2n = "add."
  132. ENDIF
  133.  
  134. SETTEMP txt2n = " favorite.  The type you choose is used to determine how this item's page on the Web site is styled.  It also governs what questions you will be asked to complete this item."
  135.  
  136.  
  137. SETTEMP passageVar = "nFavorite"
  138. SETTEMP lastPassage = 0
  139.  
  140. BACKSTOP NewFavItem1
  141. SETTEMP nFavorite = 1
  142. GOSUB AdvancePassage
  143. SETTEMP nNumber = nFavorite
  144. GOSUB Ordinal
  145. SETTEMP favPrmptext = txt1nA,ordinal,txt1nB,txt1n,pers_fam_mode,txt2n,favSeltext,txt2n
  146. GOSUB GetFavoriteData
  147. SETBACKSTOP NewFavItem1
  148.  
  149. BACKSTOP NewFavItem2
  150. SETTEMP nFavorite = 2
  151. GOSUB AdvancePassage
  152. SETTEMP nNumber = nFavorite
  153. GOSUB Ordinal
  154. SETTEMP favPrmptext = txt1nA,ordinal,txt1nB,txt1n,pers_fam_mode,txt2n,favSeltext,txt2n
  155. GOSUB GetFavoriteData
  156. SETBACKSTOP NewFavItem2
  157.  
  158. BACKSTOP NewFavItem3
  159. SETTEMP nFavorite = 3
  160. GOSUB AdvancePassage
  161. SETTEMP nNumber = nFavorite
  162. GOSUB Ordinal
  163. SETTEMP favPrmptext = txt1nA,ordinal,txt1nB,txt1n,pers_fam_mode,txt2n,favSeltext,txt2n
  164. GOSUB GetFavoriteData
  165. SETBACKSTOP NewFavItem3
  166.  
  167.  
  168. ;xxxxxxxxxxxxxxxxxxx INPUT ROUTINE FOR ANY FAVORITE xxxxxxxxxxxxxxxxxxx
  169. [GetFavoriteData]
  170. GOSUB SetFavoritesIndexVariables
  171.  
  172. SETTEMP oldFavType = favType
  173. IF favType = ""
  174.   SETTEMP favType = "Dining"
  175. ENDIF
  176.  
  177.  
  178. ; get the type
  179. PAGE
  180. TYPE RADIOBUTTONSWITHTEXT
  181. NAME favType
  182. WIZPIC_RE wizPic
  183. DESCRIPTION_RE favPrmptext
  184. ARGUMENT "&Dining"@Dining@"\nThis is the place to let everyone know about one of your favorite places to eat.\n\nYou can describe the food, the type of cuisine, and other details to let everyone know why this is your favorite."
  185. ARGUMENT "&Shopping"@Shopping@"\nUse this category for a favorite store, shopping mall, or catalog.\n\nTell everyone why you think this is a great place to shop and buy."
  186. ARGUMENT "&Vacation spot"@Vacation Spot@"\nIf you have had one of those great vacation experiences, and want a way to recommend the place to everyone, pick this item.\n\nYou can tell what type of vacation place it is, and describe what you liked about it."
  187. ARGUMENT "&Music"@Music@"\nUse this to describe one of your favorite musical pieces or collections.\n\nYou can describe the type of music, the artist, and what you like about it."
  188. ARGUMENT "&Recipe"@Recipe@"\nUse this to describe one of your favorite recipes.\n\nYou can describe the type of dish, whose recipe it is, and the ingredients and preparation instructions."
  189. ARGUMENT "&Books"@Books@"\nUse this item to describe a favorite book that you would like to recommend to others."
  190. ARGUMENT "&Recommendation of any type"@Recommendation@"\nUse this item to make a recommendation about something that is not one of the other types.\n\nYou can use this item to recommend just about anything."
  191. ;ETNEW         add here the rest of the favorites
  192.  
  193.  
  194. IF oldFavType <> favType && oldFavType <> ""
  195.  SET favLinkText = ""
  196.  SET favName = ""
  197.  SET favLocation = ""
  198.  SET favSpec = ""
  199.  SET favSponsors = ""
  200.  SET favText = ""
  201. ENDIF
  202.  
  203. IF pers_fam_mode = "personal" && favSponsors = ""
  204.   SETTEMP favSponsors = name
  205. ENDIF
  206.  
  207. BACKSTOP
  208. IF favType = "Recommendation"
  209.   GOSUB GetRecommendData
  210. ENDIF
  211.  
  212. IF favType = "Music"
  213.  GOSUB GetMusicData
  214. ENDIF
  215.  
  216. IF favType = "Recipe"
  217.  GOSUB GetRecipeData
  218. ENDIF
  219.  
  220. IF favType = "Dining"
  221.  GOSUB GetDiningData
  222. ENDIF
  223.  
  224. IF favType = "Vacation Spot"
  225.  GOSUB GetVacationData
  226. ENDIF
  227.  
  228. IF favType = "Shopping"
  229.  GOSUB GetShoppingData
  230. ENDIF
  231.  
  232. IF favType = "Books"
  233.  GOSUB GetBookData
  234. ENDIF
  235.  
  236. SET eval( favTypeVar ) = favType
  237. SET eval( favLinkTextVar ) = favLinkText
  238. SET eval( favNameVar ) = favName
  239. SET eval( favLocationVar ) = favLocation
  240. SET eval( favSpecVar ) = favSpec
  241. SET eval( favSponsorsVar ) = favSponsors
  242. SET eval( favTextVar ) = favText
  243.  
  244.  
  245.  
  246. [GetRecipeData]     ;xxxxxxxxx INPUT FAV RECIPE xxxxxxxxxxxxx
  247. PAGE
  248. TYPE MULTIPLEEDITS
  249. WIZPIC wizpics\chefwiz2.gif
  250. DESCRIPTION_RE "RECIPE        Enter the name of the dish from a favorite recipe.\n\nAlso enter the name of the family member who created the recipe, or the member whose favorite recipe this is.  Lastly, tell what category of dish this recipe is for: entree, salad, dessert, and so on."
  251. ARGUMENT Name of &dish:@favName
  252. ARGUMENT &Whose:@favSponsors
  253. ARGUMENT &Category of dish:@favLocation
  254.  
  255. IF favName = "" || favName == rcp_name
  256.  SETTEMP favName = rcp_name
  257.  SETTEMP favLinkText = rcp_name
  258. ELSE
  259.  SETTEMP favLinkText = rcp_name,": ",favName
  260. ENDIF
  261.  
  262. SETTEMP junk = favName
  263. ;favName = dish name
  264. ;favLocation = type of dish
  265. ;favSpec = dish author
  266. ;favSponsors  =ingredients
  267. ;favText = cooking instructions
  268.  
  269. BACKSTOP
  270. PAGE
  271. TYPE MULTIANDEDIT
  272. WIZPIC wizpics\chefwiz2.gif
  273. DESCRIPTION_RE "Enter the ingredients for this dish.  Include the amount.  For example, 2 cups of sliced carrots.\n\nPress the Enter key to start a new line for each ingredient."
  274. ARGUMENT Name of dish:@junk
  275. ARGUMENT &Ingredients:@favSpec
  276.  
  277. SETTEMP junk = favName
  278.  
  279. BACKSTOP
  280. PAGE
  281. TYPE MULTIANDEDIT
  282. WIZPIC wizpics\chefwiz2.gif
  283. DESCRIPTION_RE "Now enter the preparation instructions.  A step might be 'Preheat the oven to 400 degrees' or 'Peel the carrots and cut into 1/4 inch sections'.\n\nPress the enter key to start a new line for each step in the process."
  284. ARGUMENT Name of dish:@junk
  285. ARGUMENT Preparation &Instructions:@favText
  286.  
  287.  
  288.  
  289. [GetBookData]     ;xxxxxxxxx INPUT FAV BOOK xxxxxxxxxxxxx
  290. PAGE
  291. TYPE MULTIPLEEDITS
  292. WIZPIC_RE wizPic
  293. DESCRIPTION_RE "BOOKS\nEnter the full title of a favorite book.  If it is a very long name (over 5-6 words), then abbreviate.\n\nAlso tell who is the author of the book."
  294. ARGUMENT &Book title:@favName
  295. ARGUMENT &Author:@favLocation
  296.  
  297. IF favName = "" || favName == bok_name
  298.  SETTEMP favName = bok_name
  299.  SETTEMP favLinkText = bok_name
  300. ELSE
  301.  SETTEMP favLinkText = bok_name,": ",favName
  302. ENDIF
  303.  
  304. SETTEMP prx_prm = "Provide the rest of the details about your favorite book "
  305. SETTEMP prx_prm1 = ".  What general category is this book?  Fiction, drama, thriller, suspense, mystery, etc.\n\nWhich family member read this book?  If it was read by several members, list them all.  Provide a brief description of the book and its content.  Be sure not to spoil the ending for anyone!"
  306.  
  307.  
  308. BACKSTOP
  309. PAGE
  310. TYPE MULTIAND2EDITS
  311. WIZPIC_RE wizPic
  312. DESCRIPTION_RE prx_prm,favName,prx_prm1
  313. ARGUMENT &Category:@favSpec
  314. ARGUMENT &Family members who read it:@favSponsors
  315. ARGUMENT &General description:@favText
  316.  
  317.  
  318.  
  319.  
  320. [GetMusicData]     ;xxxxxxxxx INPUT MUSICAL FAV xxxxxxxxxxxxx
  321. PAGE
  322. TYPE MULTIPLEEDITS
  323. WIZPIC wizpics\wizmusfv.gif
  324. DESCRIPTION_RE "MUSIC\nEnter the name of the musical favorite.  It can be a single, a CD, an opera or musical play, or anything musical.  Enter just the name for now.\n\nAlso tell who is the artist or group who performs this music."
  325. ARGUMENT Name of &music:@favName
  326. ARGUMENT &Artist:@favLocation
  327.  
  328. IF favName = "" || favName == mus_name
  329.  SETTEMP favName = mus_name
  330.  SETTEMP favLinkText = mus_name
  331. ELSE
  332.  SETTEMP favLinkText = mus_name,": ",favName
  333. ENDIF
  334.  
  335. SETTEMP prx_prm = "Provide the rest of the details for your musical favorite "
  336. SETTEMP prx_prm1 = ".  What category of music would you classify this piece in?  Rock, rap, classical, etc.\n\nWho in the family recommends this music?  Tell a little about this music.  Tell some of the cuts, about the instrumentation, and anything you would like to share.  How does it make you feel?"
  337.  
  338.  
  339. BACKSTOP
  340. PAGE
  341. TYPE MULTIAND2EDITS
  342. WIZPIC wizpics\wizmusfv.gif
  343. DESCRIPTION_RE prx_prm,favName,prx_prm1
  344. ARGUMENT &Category:@favSpec
  345. ARGUMENT &Family members recommending this:@favSponsors
  346. ARGUMENT &What you like best about this:@favText
  347.  
  348.  
  349.  
  350.  
  351. [GetRecommendData]     ;xxxxxxxxx INPUT GEN RECOMMENDATION xxxxxxxxx
  352. PAGE
  353. TYPE MULTIPLEEDITS
  354. WIZPIC_RE wizPic
  355. DESCRIPTION_RE "RECOMMENDATION\nEnter the name of what's being recommended.  It can be an item, a service, a company, a movie, or anything.  Enter just the name for now.\n\nAlso tell where can you find the thing being recommended."
  356. ARGUMENT &Recommendation:@favName
  357. ARGUMENT &Where to find it:@favLocation
  358.  
  359. IF favName = "" || favName == rec_name
  360.  SETTEMP favName = rec_name
  361.  SETTEMP favLinkText = rec_name
  362. ELSE
  363.  SETTEMP favLinkText = rec_name,": ",favName
  364. ENDIF
  365.  
  366. SETTEMP prx_prm = "Provide the rest of the details for your recommendation of "
  367. SETTEMP prx_prm1 = ".  What is the general category for this item, place, etc.?\n\nWho in the family recommends this?  Describe what you like best about this.  Add plenty of details here."
  368.  
  369.  
  370. BACKSTOP
  371. PAGE
  372. TYPE MULTIAND2EDITS
  373. WIZPIC_RE wizPic
  374. DESCRIPTION_RE prx_prm,favName,prx_prm1
  375. ARGUMENT &A category:@favSpec
  376. ARGUMENT &Family members recommending this:@favSponsors
  377. ARGUMENT &What you like best about this:@favText
  378.  
  379.  
  380.  
  381.  
  382. [GetDiningData]       ;xxxxxxxxx INPUT DINING FAV xxxxxxxxxxxxxxx
  383. PAGE
  384. TYPE MULTIPLEEDITS
  385. WIZPIC wizpics\dningwiz.gif
  386. DESCRIPTION_RE "DINING FAVORITE       This makes a page describing a favorite eating place.\n\nStart by filling in the name and location of a favorite place to dine.  For the location, enter the town, city, or other information that would help someone to know where the place is.  You will be prompted for more information on the next page."
  387. ARGUMENT &Restaurant name:@favName
  388. ARGUMENT &Location:@favLocation
  389.  
  390. IF favName = "" || favName == din_name
  391.  SETTEMP favName = din_name
  392.  SETTEMP favLinkText = din_name
  393. ELSE
  394.  SETTEMP favLinkText = din_name,": ",favName
  395. ENDIF
  396.  
  397. BACKSTOP
  398. PAGE
  399. TYPE COMBO
  400. WIZPIC wizpics\chefwiz2.gif
  401. DESCRIPTION_RE din_p2,favName,din_p2a
  402. NAME favSpec
  403. PROMPT Pick a restaurant type:
  404. INCLUDEARGUMENTSFROM RestType
  405.  
  406. BACKSTOP
  407. PAGE
  408. TYPE MULTIANDEDIT
  409. WIZPIC wizpics\chefwiz2.gif
  410. DESCRIPTION_RE din_p3,favName,din_p3a,favName,din_p3b
  411. ARGUMENT &Family members who like it:@favSponsors
  412. ARGUMENT &Recommended dishes and description:@favText
  413.  
  414.  
  415. [GetVacationData]       ;xxxxxxxxx INPUT VACATION FAV xxxxxxxxxxxxxxx
  416. PAGE
  417. TYPE MULTIPLEEDITS
  418. WIZPIC wizpics\vacatwiz.gif
  419. DESCRIPTION_RE "VACATION FAVORITE\nThis favorite will describe a favorite vacation or getaway place.  To begin, enter the name of the vacation spot or resort (for example, Montesori Ranch) and where this vacation spot is located (city and state, or country, island, etc.)."
  420. ARGUMENT &Vacation spot name:@favName
  421. ARGUMENT &Location:@favLocation
  422.  
  423. IF favName = "" || favName == vac_name
  424.  SET favName = vac_name
  425.  SET favLinkText = vac_name
  426. ELSE
  427.  SET favLinkText = vac_name,": ",favName
  428. ENDIF
  429.  
  430. BACKSTOP
  431. PAGE
  432. TYPE MULTIAND2EDITS
  433. WIZPIC wizpics\vacatwiz.gif
  434. DESCRIPTION_RE vac_p2
  435. ARGUMENT &Vacation type:@favSpec
  436. ARGUMENT &Family members who like it:@favSponsors
  437. ARGUMENT &What you like best about this vacation spot:@favText
  438.  
  439.  
  440. [GetShoppingData]       ;xxxxxxxxx INPUT SHOPPING FAV xxxxxxxxxxxxxxx
  441. PAGE
  442. TYPE MULTIPLEEDITS
  443. WIZPIC wizpics\shpngwiz.gif
  444. DESCRIPTION_RE "SHOPPING FAVORITE\nThis favorite describes one of your favorite places to shop or buy.  Enter the name of the store or shopping center and its location (town or shopping center) in the spaces here."
  445. ARGUMENT &Shopping place name:@favName
  446. ARGUMENT &Location:@favLocation
  447.  
  448. IF favName = "" || favName = shop_nam
  449.  SET favName = shop_nam
  450.  SET favLinkText = shop_nam
  451. ELSE
  452.  SET favLinkText = shop_nam,": ",favName
  453. ENDIF
  454.  
  455. BACKSTOP
  456. PAGE
  457. TYPE MULTIAND2EDITS
  458. WIZPIC wizpics\shpngwiz.gif
  459. DESCRIPTION_RE shop_p2
  460. ARGUMENT Type of &merchandise:@favSpec
  461. ARGUMENT &Family members who like shopping there:@favSponsors
  462. ARGUMENT &What you like best about this store:@favText
  463.  
  464.  
  465.  
  466. ;xxxxxxxxxxxxxxxxxxxx   BUILD THE PAGES xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  467. [BuildFamFavoritesPages]           ;xxxxxxxFAMILY FAVORITE LINK PAGE xx
  468. SETPARENTTOPIC pageContents
  469. SETTEMP pageNameVar = "pageFavorites"
  470. SETTEMP caption = "Favorites of the ",familyLastName," Family"
  471. SETTEMP favoritesVarRoot = ""
  472. SETTEMP pageName = "##Famfavorites"
  473. SETTEMP photo = ""
  474. COPY photo = familyPhoto
  475. GOSUB BuildFavoritesPages
  476. ;
  477.  
  478. [BuildPersFavoritesPages]           ;xxxxxPERSONAL FAVORITE LINK PAGE xx
  479.         ;called only from NWMEMBER.DAT
  480. SETPARENTTOPIC memberLinkPage
  481. SETTEMP caption = "Favorites of ",name," ",familyLastName
  482. SETTEMP favoritesVarRoot = "member",nSel
  483. SETTEMP pageName = "##Favorites","Member",nSel
  484. SETTEMP photoVar = "memberPhoto",nSel
  485. COPY photo = eval( photoVar )
  486. GOSUB BuildFavoritesPages
  487.  
  488.  
  489.  
  490. [BuildFavoritesPages]           ;xxxxxxxINDIVIDUAL FAVORITE PAGES xxxx
  491. SETTEMP favLinkTextVarRoot = favoritesVarRoot,"favLinkText"
  492. SETTEMP favLinkTextVar1 = favLinkTextVarRoot,1
  493. SETTEMP favLinkTextVar2 = favLinkTextVarRoot,2
  494. SETTEMP favLinkTextVar3 = favLinkTextVarRoot,3
  495.  
  496. SETTEMP favPageVarRoot = favoritesVarRoot,"favPage"
  497. SETTEMP favPageVar1 = favPageVarRoot,1
  498. SETTEMP favPageVar2 = favPageVarRoot,2
  499. SETTEMP favPageVar3 = favPageVarRoot,3
  500.  
  501. IF favoritesVarRoot = ""      ;not a personal fav.
  502.   SETTEMP template_use = "Favorites"
  503.   SETTEMP temp_placard = fav_pix
  504.   SETTEMP the_mode = "our family"
  505. ELSE
  506.   SETTEMP template_use = "Personal Favorites"
  507.   SETTEMP temp_placard = pfav_pix
  508.   SETTEMP the_mode = "my personal"
  509. ENDIF
  510. SETTYPE temp_placard = picture
  511.  
  512. BUILDTOPIC pageName
  513. REPLACE eval( pageNameVar )
  514. template_use     ;template
  515. none                 ; backdrop
  516. 1                    ; level
  517. 3                    ; links
  518. eval( favPageVar1 )
  519. eval( favPageVar2 )
  520. eval( favPageVar3 )
  521. 7                    ; # of fields
  522. caption
  523. eval( favLinkTextVar1 )
  524. eval( favLinkTextVar2 )
  525. eval( favLinkTextVar3 )
  526. photo
  527. temp_placard
  528. the_mode
  529.  
  530. SET eval( pageNameVar ) = topicfromsymbolic( pageName )
  531.  
  532. SETTEMP nFavorite = 1
  533. GOSUB BuildAFavoritesPage
  534.  
  535. SETTEMP nFavorite = 2
  536. GOSUB BuildAFavoritesPage
  537.  
  538. SETTEMP nFavorite = 3
  539. GOSUB BuildAFavoritesPage
  540.  
  541.  
  542.  
  543. [BuildAFavoritesPage]
  544. GOSUB SetFavoritesIndexVariables
  545. SETTEMP pageName = "##Favorites",nFavorite,favoritesVarRoot
  546. SETTEMP favTemplate = "Favorites - ",eval( favTypeVar )
  547.  
  548. SETPARENTTOPIC eval( pageNameVar )
  549.  
  550. BUILDTOPIC pageName
  551. REPLACE eval( favPageVar )
  552. favTemplate
  553. none         ;backdrop
  554. 1            ;level
  555. 0            ;# links
  556. 5            ;# fields
  557. favName
  558. favLocation
  559. favSpec
  560. favSponsors
  561. favText
  562.  
  563. SET eval( favPageVar ) = topicfromsymbolic( pageName )
  564.  
  565.  
  566.  
  567.  
  568. [SetFavoritesIndexVariables]
  569. SETTEMP favPageVar = favoritesVarRoot,"favPage",nFavorite
  570.  
  571. SETTEMP favLinkTextVar = favoritesVarRoot,"favLinkText",nFavorite
  572. SETTEMP favTypeVar = favoritesVarRoot,"favType",nFavorite
  573. SETTEMP favNameVar = favoritesVarRoot,"favName",nFavorite
  574. SETTEMP favLocationVar = favoritesVarRoot,"favLocation",nFavorite
  575. SETTEMP favSpecVar = favoritesVarRoot,"favSpec",nFavorite
  576. SETTEMP favSponsorsVar = favoritesVarRoot,"favSponsors",nFavorite
  577. SETTEMP favTextVar = favoritesVarRoot,"favText",nFavorite
  578.  
  579. SETTEMP favLinkText = eval( favLinkTextVar )
  580. SETTEMP favType = eval( favTypeVar )
  581. SETTEMP favName = eval( favNameVar )
  582. SETTEMP favLocation = eval( favLocationVar )
  583. SETTEMP favSpec = eval( favSpecVar )
  584. SETTEMP favSponsors = eval( favSponsorsVar )
  585. SETTEMP favText = eval( favTextVar )
  586.  
  587.  
  588.  
  589. [InitFavVars]
  590. SETTEMP nFavorite = ""
  591. SETTEMP favType = ""
  592. SETTEMP favName = ""
  593. SETTEMP favLocation = ""
  594. SETTEMP favSpec = ""
  595. SETTEMP favSponsors = ""
  596. SETTEMP favText = ""
  597.  
  598. SETTEMP din_name = "A favorite place to eat"
  599. SETTEMP shop_nam = "A favorite place to shop"
  600. SETTEMP vac_name = "A favorite vacation spot"
  601. SETTEMP rec_name = "A recommendation for you"
  602. SETTEMP mus_name = "A musical favorite"
  603. SETTEMP bok_name = "A favorite book"
  604. SETTEMP rcp_name = "A favorite recipe"
  605. SETTEMP din_p2 = "What type of eating place is "
  606. SETTEMP din_p2a = "?  Pick a category that best describes this eating establishment, or type your own into the box below."
  607. SETTEMP din_p3 = "Describe the things that make "
  608. SETTEMP din_p3a = " a 'favorite'.  Fill in who in the family likes to eat there and menu items you would recommend.\n     You can also throw into the section for recommended dishes any other characteristics that make "
  609. SETTEMP din_p3b = " a favorite, such as the type of food served."
  610. SETTEMP shop_p2 = "To define why this shopping place is a 'favorite', fill in the type of merchandise the store sells, the family members who like to shop at this store, and a short description of the store and what you like best about it."
  611. SETTEMP vac_p2 = "To define why this vacation spot is a 'favorite', provide some additional information here.  Tell what type of vacation spot this place is (seaside resort, ranch, camp, etc.), tell which family members like it, and provide a short description of what you like best about it."
  612. SETTEMP favSeltext = "\n\nSelect one of the types of favorites listed below to "
  613.  
  614. [RestType]
  615. IGNORE
  616. ARGUMENT "Italian"@Italian
  617. ARGUMENT "French"@French
  618. ARGUMENT "German"@German
  619. ARGUMENT "American"@American
  620. ARGUMENT "Seafood"@Seafood
  621. ARGUMENT "Continental"@Continental
  622. ARGUMENT "Oriental"@Oriental
  623. ARGUMENT "Mexican"@Mexican
  624. ARGUMENT "Steak House"@Steak House
  625. ARGUMENT "Rib Joint"@Rib Joint
  626. ARGUMENT "Pizza Place"@Pizza Place
  627. ARGUMENT "Diner"@Diner
  628. ARGUMENT "Fast Food"@Fast Food
  629.